package Queue;

public class Text {
    public static void main(String[] args) {
/*        MyArrayQueue queue = new MyArrayQueue();
        queue.enQueue(1);
        queue.enQueue(2);
        queue.enQueue(3);
        queue.enQueue(4);
        queue.enQueue(5);
        queue.enQueue(6);

        queue.printAll();

        System.out.println(queue.deQueue());
        System.out.println(queue.peek());
        queue.printAll();*/


        MyLinkedListQueue queue = new MyLinkedListQueue();
        queue.enQueue(1);
        queue.enQueue(2);
        queue.enQueue(3);
        queue.enQueue(4);
        queue.enQueue(5);
        queue.enQueue(6);

        queue.printAll();

        System.out.println(queue.deQueue());
        System.out.println(queue.peek());
        queue.printAll();
    }
}
